<?php
return [
    'aliases' => [
        '@bower' => '@vendor/bower-asset',
        '@npm'   => '@vendor/npm-asset',
    ],
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'components' => [
        'cache' => [
            'class' => 'yii\caching\FileCache',
        ],
        'services' => [
            'class' => 'services\Application',
        ],
        //网站碎片
        'debris' => [
            'class' => 'common\components\Debris',
        ],
        //上传组件
        'uploadDrive' => [
            'class' => 'common\components\UploadDrive',
        ],
        'authManager' => [
            'class' => 'yii\rbac\DbManager', // or use 'yii\rbac\PhpManager'
            'defaultRoles' => ['@'],
        ]
    ],
];
